<template>
	<view>

		<view class="con">
			<view class="flex-ju-c userview">
				<view @click="tapindex(0)" :class="tindex==0?'active':''" class="zhong flex-ju-c ">中奖用户</view>
				<view @click="tapindex(1)" :class="tindex==1?'active':''" class="zhong flex-ju-c">参与用户</view>
			</view>

		</view>
		<view v-if="tindex==1">
			<view class="flex-a-i  posire" style="color:#4D4D4D;flex-wrap: wrap;">
				<view v-for="item in 11" class="flex-ju-c mt20" style="width:20%;flex-direction: column;">
					<image mode="widthFix" class="image flex"
						style="width: 90rpx;height: 80rpx;box-shadow: 0rpx 7rpx 2rpx 0rpx #82C7BC;border: 4px solid #FFFFFF;border-radius: 50%;"
						src="/static/liwu.png"></image>
					<view class="one  mt5" style="width: 95rpx;font-size: 20rpx;">用户名用户名</view>
				</view>
			</view>
		</view>
		<view v-else class="p30">
				<view class=" flex-ju-b mt15 pb15" v-for="i in 10" style="border-bottom:1px solid #ECF6FB;">
					<view class="flex-a-i size12">
						<image class="flex mr10" style="width:50rpx;height:50rpx;border-radius: 50%;" src="/static/liwu.png"></image>
						用户名称
					</view>
					<view style="color:#FF0000;" class="size12">
						中奖的奖品名称
					</view>
				</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tindex: 0
			}
		},
		methods: {
			tapindex(index) {
				this.tindex = index
			}
		}
	}
</script>

<style>
	page {
		background: #fff;
	}

	.zhong {
		width: 335rpx;
		height: 80rpx;
	}

	.userview {
		background: #ECF6FB;
		height: 100rpx;
		color: #8D8D99;
		border-radius: 100rpx;
	}

	.active {
		color: #fff;
		background: #14D38F;
		width: 335rpx;
		height: 80rpx;
		border-radius: 80rpx;
	}
</style>